home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1896 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  49 lines

  1. Newsgroups: comp.lang.c
  2. Path: stl.dk!knc
  3. From: knc@stl.dk (Knud Christensen)
  4. Subject: Re: HELP: What is wrong ?
  5. Organization: Lyngsoe Energi & Miljoe, Ballerup, Denmark
  6. Date: Wed, 17 Jan 1996 07:59:41 GMT
  7. Message-ID: <DLBFJH.JDI@stl.dk>
  8. References: <4df373$kd3@ns.etri.re.kr>
  9.  
  10. In <4df373$kd3@ns.etri.re.kr> jinsoo@etri.re.kr (Jin-Soo Lee) writes:
  11.  
  12. > Your KIND HELP is needed.
  13. > I have some problems in the following code.
  14.  
  15. >---------
  16.  
  17. >#define DSKPAGESIZE     16*1024
  18. >#define LOGBUFSIZE      2*DSKPAGESIZE
  19.  
  20. How about
  21.  
  22. #define DSKPAGESIZE     (16*1024)
  23. #define LOGBUFSIZE      (2*DSKPAGESIZE)
  24.  
  25. > The code worked well on SUN OS 4.1.3. and K&R C with dbx,
  26.  
  27. If it really worked, then you had a buggy compiler, or it was not the
  28. same code ;-)
  29.  
  30. > but goes wrong when moved to current environment,
  31. > Solaris 2.4 and SUN C with SparcWorks dbx and gcc with gdb.
  32. > The statements (1) ~ (5) sometimes make too big or negative values.
  33. > I can't believe it.
  34. > What happened ?
  35. > OS or compiler problem ? or C language syntax problem ?
  36.  
  37. > Any help is greatly appreciated. Please e-mail me.
  38.  
  39. >--
  40. >Jin-Soo Lee            Internet: jinsoo@dbserver.etri.re.kr
  41. >DB Section, Electronics and Telecommunications Research Inst. (ETRI)
  42. >P.O. Box 106, You-Seong, Taejon, 305-600, Korea
  43. >TEL: +82-42-860-4865                            FAX: +82-42-860-6645
  44. -- 
  45.     Knud Christensen
  46.     Lyngsoe Energi og Miljoe a.s, Industriparken 39A, DK  2750 Ballerup, Denmark
  47.     Phone:  (+45) 4482 0222, Direct: (+45) 4482 0276
  48.     Fax.:   (+45) 4482 0299, Email:  knc@stl.dk
  49.